package _thread_lock._futurepattern._future;

/**
 * @Author: huangya
 * @Date: 2020/10/19
 * @Description:
 */
public interface Future<T> {

    //返回计算后的结果，该方法会陷入阻塞状态
    T get() throws InterruptedException;

    //判断任务是否已经被执行完成
    boolean done();
}
